package auto.app.service;

import auto.app.controller.from.*;
import auto.app.controller.info.CaseDaoDetailInfo;
import auto.app.controller.info.CasePageInfo;
import auto.app.exetion.MainExection;
import auto.app.model.CaseInterface;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author 杨森
 * @since 2022-07-09
 */
public interface CaseService extends IService<CaseInterface> {

    //单个用例执行
    public String callCase(CallCasePO callCasePO) throws MainExection;

    //生成测试用例
    public Boolean casegeneration(Integer caseId) throws MainExection;

    //列表
    public CasePageInfo list(CasePageFrom casePageFrom);

    //新增
    public Boolean caseAddFrom(CaseAddFrom caseAddFrom) throws MainExection;

    //删除
    public Boolean deleteList(CaseDeleteListFrom caseDeleteListFrom) throws MainExection;

    //根据测试用例id查询详情
    public CaseDaoDetailInfo detail(Integer caseId) throws MainExection;

    //复制测试用例
    public Boolean copyCase(CaseCopySave caseCopySave) throws MainExection;
}
